package com.zhku.xxl.service.serviceImp;

import com.zhku.xxl.dao.GraduateDao;
import com.zhku.xxl.dao.daoImp.GraduateDaoImp;
import com.zhku.xxl.entity.Graduate;
import com.zhku.xxl.entity.vo.GraduateVo;
import com.zhku.xxl.service.GenericService;
import com.zhku.xxl.service.GraduateService;

import java.util.List;

public class GraduateServiceImp extends GenericService<Graduate> implements GraduateService {
    private GraduateDao graduateDao = new GraduateDaoImp();
    @Override
    public List<GraduateVo> graduateList(String data, String departMajor, String graduateClass, String name) {

        return graduateDao.graduateList(data,departMajor,graduateClass,name);
    }

    @Override
    public int deleteForName(String name) {
        return graduateDao.deleteForName(name);
    }

    @Override
    public GraduateVo queryByStudentId(String studentId) {
        return graduateDao.queryByStudentId(studentId);
    }

    @Override
    public Graduate queryById(int Id) {
        return graduateDao.queryById(Id);
    }

    @Override
    public int updateForId(Graduate graduate) {
        return updateById(graduate);
    }


}
